package com.chinanet.controller.netelement;

import com.chinanet.repository.netelement.WorkingRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/workings/operation")
public class WorkingController {
    @Autowired
    private WorkingRepository workingRepository;

    @RequestMapping(value = "/work/{work}/{bigkind}", method = RequestMethod.POST)
    public void update(@PathVariable String work,@PathVariable int bigkind) {
        workingRepository.updateWork(work,bigkind);
    }
}
